package com.keyao.subject.application.convert;

import com.keyao.subject.application.dto.SubjectAnswerDTO;
import com.keyao.subject.domain.entity.SubjectAnswerBO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * 标签DTO转换器
 */
@Mapper
public interface SubjectAnswerDTOConverter {
    SubjectAnswerDTOConverter INSTANCE = Mappers.getMapper(SubjectAnswerDTOConverter.class);

    SubjectAnswerBO convertDtoToBo(SubjectAnswerDTO subjectAnswerDTO);

    List<SubjectAnswerBO> convertDtoListToBo(List<SubjectAnswerDTO> subjectAnswerDTO);

    List<SubjectAnswerDTO> convertBOToDTO(List<SubjectAnswerBO> subjectAnswerBOList);


}
